package com.hst.capacity.domain.model.entity.franchisee;

import com.hst.capacity.domain.model.entity.DefaultEntity;
import com.hst.capacity.domain.model.entity.auth.UserEntity;
import lombok.Data;

import javax.persistence.*;

/**
 *  运力商用户表
 *
 * */
@Data
@Entity
@Table(name = "fm_franchisee_user")
public class FranchiseeUserEntity extends DefaultEntity {

    @OneToOne(cascade = CascadeType.PERSIST)
    @JoinColumn(name = "user_id")
    private UserEntity user;

    private String idFranchisee;
//    @OneToOne(cascade = CascadeType.PERSIST)
//    @JoinColumn(name = "id_franchisee")
//    private FranchiseeEntity franchiseeEntity;

    private Integer userType;
    private String displayName;
}
